package com.wch.demo.actuator;

import java.util.Map;

import org.springframework.boot.actuate.endpoint.Endpoint;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 通过这个方法将自定义的StandandEndpoint注入到Endpoint中
 * @author 19821
 *
 */
@Configuration
public class EndPointAutoConfig {
	@Bean
    public Endpoint<Map<String, Object>> StandandEndpoint() {
        return new StandandEndpoint();
    }
}
